package com.chen.recruit.domain.vo;

import java.util.Date;

import com.chen.recruit.common.valid.AddGroup;
import com.chen.recruit.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
@ApiModel("JobFairVo 招聘会视图对象")
public class JobFairVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("招聘会id")
    @Null(message = "新增招聘会id不能为空", groups = AddGroup.class)
    @NotNull(message = "更新招聘会id不能为空", groups = UpdateGroup.class)
    private Integer id;

    @ApiModelProperty("企业id")
    @NotNull(message = "企业id不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer enterpriseId;

    @ApiModelProperty("教室id")
    @NotNull(message = "教室id不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer classroomId;

    @ApiModelProperty("开始时间")
    @Future(message = "开始时间必须在当前系统时间之后", groups = {AddGroup.class, UpdateGroup.class})
    private Date beginTime;

    @ApiModelProperty("结束时间")
    @Future(message = "结束时间必须在当前系统时间之后", groups = {AddGroup.class, UpdateGroup.class})
    private Date endTime;

    @ApiModelProperty("状态")
    @NotNull(message = "状态不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer status;

}
